package cn.pangza.user.mapper;

import cn.pangza.user.entity.po.Employee;
import cn.pangza.user.entity.po.SystemUserPo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SystemUserMapper extends BaseMapper<SystemUserPo> {

    SystemUserPo loadUserByUsername(String username);

    @Select("select id, name, image from employee where id= #{id} and delete_flag=0")
    Employee getEmployeeById(Integer id);
}
